package com.fan;

import com.fan.websocket.CustomerWebSocketServer;
import org.java_websocket.server.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import java.net.InetSocketAddress;

@SpringBootApplication
public class SerialGoApplication {

	public static void main(String[] args) {
		SpringApplication.run(SerialGoApplication.class, args);
	}

	/*@Bean
	public CustomerWebSocketServer customerWebSocketServer() {
		String host = "localhost";
		int port = 8887;
		CustomerWebSocketServer customerWebSocketServer = new CustomerWebSocketServer(new InetSocketAddress(host, port));
		customerWebSocketServer.start();
		customerWebSocketServer.setTcpNoDelay(true);
		return customerWebSocketServer;
	}*/
}
